package com.yuejian_06.yuejian_06.service;

import com.yuejian_06.yuejian_06.bean.ActivityBean;
import com.yuejian_06.yuejian_06.bean.ContestBean;
import com.yuejian_06.yuejian_06.bean.FollowListBean;
import com.yuejian_06.yuejian_06.bean.OrderListBean;
import com.yuejian_06.yuejian_06.bean.SuccessBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by __ZL__ on 2017/10/13.
 */

public interface HomeService {
    //活动列表
    @GET("activitylist")
    Call<List<ActivityBean>> getActivityList(
    );

    //报名活动
    @GET("addactivity")
    Call<SuccessBean> getAddActivity(
            @Query("user_id") String user_id,
            @Query("activity_id") String activity_id,
            @Query("activity_name") String activity_name,
            @Query("IDcard") String IDcard,
            @Query("sum_price") String sum_price,
            @Query("phonenum") String phonenum
    );

    //活动详情
    @GET("activityinfo")
    Call<ActivityBean> getActivityInfo(
            @Query("activity_id") String activity_id
    );

    //比赛列表
    @GET("contestlist")
    Call<List<ContestBean>> getContestList(
    );

    //比赛详情
    @GET("contestinfo")
    Call<ContestBean> getContestInfo(
            @Query("contest_id") String contest_id
    );
}
